New API in HTML 5

API is an interface that enables a software program to interact with other software. In HTML 5, the new APIs included are:

  • The canvas element for using 2D drawing on a Web page
  • Timed media playback for supporting online presentations without help of any third party tool
  • Offline storage of database, which implies that data can be stored in a Web browser
  • Document editing
  • Drag-and-drop features that helps in clicking an object and dragging it to a different location
  • Cross-document messaging, which allows documents from different source to communicate with each other
  • Browser history management that helps a user to analyze history of a Web page
  • MIME type and protocol handler registration so that the attachments that include plain text are supported by the Web browser
  • Microdata that provides a simple way to embed semantic markup (separation of presentation elements and content) in an HTML Web page.

These will all be read in the incoming chapters